package csc.fresher.service;

import java.util.Date;
import java.util.List;

import csc.fresher.entity.Currency;
import csc.fresher.entity.InterestRate;
import csc.fresher.entity.PeriodType;
import csc.fresher.entity.SavingTransactionType;

public interface InterestRateService {
	public List<InterestRate> getAllInterestRate();
	public InterestRate getInterestRateByID(int interestRateID);
	public List<Currency> getAllCurrency();
	public List<PeriodType> getAllPeriodTypes();
	public double getInterestRate(int currencyID, int periodTypeID);
	public double calculateAfterBalance(double currentBalance, double funds, double interestRate, int periodTypeID, SavingTransactionType savingTransactionType);
	public int getNumberOfWeeks(int periodTypeID);
	public Date getExpiryDate(int periodTypeID);
	public List<InterestRate>getAllInterestRateByCurrencyID(int currencyID);
	
}
 